.el-color-picker-panel {
    background: var(--el-bg-color-overlay);
    box-sizing: content-box;
    padding: 12px;
    width: 300px
}

.el-color-picker-panel.is-border {
    border: 1px solid var(--el-border-color-lighter);
    border-radius: 4px
}

.el-color-picker-panel__wrapper {
    margin-bottom: 6px
}

.el-color-picker-panel__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    text-align: right
}

.el-color-picker-panel__footer .el-input {
    color: #000000;
    font-size: 12px;
    line-height: 26px;
    width: 160px
}

.el-color-picker-panel.is-disabled .el-color-hue-slider,
.el-color-picker-panel.is-disabled .el-color-svpanel {
    cursor: not-allowed;
    opacity: .3
}

.el-color-picker-panel.is-disabled .el-color-hue-slider__thumb {
    cursor: not-allowed
}

.el-color-picker-panel.is-disabled .el-color-alpha-slider,
.el-color-picker-panel.is-disabled .el-color-predefine .el-color-predefine__color-selector {
    cursor: not-allowed;
    opacity: .3
}

.el-color-predefine {
    display: flex;
    font-size: 12px;
    margin-top: 8px;
    width: 280px
}

.el-color-predefine__colors {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 8px
}

.el-color-predefine__color-selector {
    border-radius: 4px;
    cursor: pointer;
    height: 20px;
    width: 20px
}

.el-color-predefine__color-selector.selected {
    box-shadow: 0 0 3px 2px var(--el-color-primary)
}

.el-color-predefine__color-selector>div {
    border-radius: 3px;
    display: flex;
    height: 100%
}

.el-color-predefine__color-selector.is-alpha {
    background-image: url()
}

.el-color-hue-slider {
    background-color: #f00;
    box-sizing: border-box;
    float: right;
    height: 12px;
    padding: 0 2px;
    position: relative;
    width: 280px
}

.el-color-hue-slider__bar {
    background: linear-gradient(90deg, #f00 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00);
    height: 100%;
    position: relative
}

.el-color-hue-slider__thumb {
    background: #fff;
    border: 1px solid var(--el-border-color-lighter);
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(0, 0, 0, .6);
    box-sizing: border-box;
    cursor: pointer;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
    z-index: 1
}

.el-color-hue-slider__thumb:focus-visible {
    outline: 2px solid var(--el-color-primary);
    outline-offset: 1px
}

.el-color-hue-slider.is-vertical {
    height: 180px;
    padding: 2px 0;
    width: 12px
}

.el-color-hue-slider.is-vertical .el-color-hue-slider__bar {
    background: linear-gradient(180deg, #f00 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00)
}

.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb {
    height: 4px;
    left: 0;
    top: 0;
    width: 100%
}

.el-color-svpanel {
    height: 180px;
    position: relative;
    width: 280px
}

.el-color-svpanel__black,
.el-color-svpanel__white {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0
}

.el-color-svpanel__white {
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0))
}

.el-color-svpanel__black {
    background: linear-gradient(0deg, #000, rgba(0, 0, 0, 0))
}

.el-color-svpanel__cursor {
    position: absolute
}

.el-color-svpanel__cursor>div {
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, .3), 0 0 1px 2px rgba(0, 0, 0, .4);
    cursor: head;
    height: 4px;
    transform: translate(-2px, -2px);
    width: 4px
}

.el-color-alpha-slider {
    background-image: linear-gradient(45deg, var(--el-color-picker-alpha-bg-a) 25%, var(--el-color-picker-alpha-bg-b) 25%), linear-gradient(135deg, var(--el-color-picker-alpha-bg-a) 25%, var(--el-color-picker-alpha-bg-b) 25%), linear-gradient(45deg, var(--el-color-picker-alpha-bg-b) 75%, var(--el-color-picker-alpha-bg-a) 75%), linear-gradient(135deg, var(--el-color-picker-alpha-bg-b) 75%, var(--el-color-picker-alpha-bg-a) 75%);
    background-position: 0 0, 6px 0, 6px -6px, 0 6px;
    background-size: 12px 12px;
    box-sizing: border-box;
    height: 12px;
    position: relative;
    width: 280px
}

.el-color-alpha-slider.is-disabled .el-color-alpha-slider__thumb {
    cursor: not-allowed
}

.el-color-alpha-slider__bar {
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, var(--el-bg-color) 100%);
    height: 100%;
    position: relative
}

.el-color-alpha-slider__thumb {
    background: #fff;
    border: 1px solid var(--el-border-color-lighter);
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(0, 0, 0, .6);
    box-sizing: border-box;
    cursor: pointer;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
    z-index: 1
}

.el-color-alpha-slider__thumb:focus-visible {
    outline: 2px solid var(--el-color-primary);
    outline-offset: 1px
}

.el-color-alpha-slider.is-vertical {
    height: 180px;
    width: 20px
}

.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgb(255, 255, 255))
}

.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb {
    height: 4px;
    left: 0;
    top: 0;
    width: 100%
}

.el-color-picker-panel {
    --el-color-picker-alpha-bg-a: #ccc;
    --el-color-picker-alpha-bg-b: transparent
}

.dark .el-color-picker-panel {
    --el-color-picker-alpha-bg-a: #333333
}